﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Inbox.Forms
{
    public partial class LoginForm : Form
    {
        public bool IsLogin { get; private set; }

        public LoginForm()
        {
            InitializeComponent();
        }

        private void btnLogin_Click(object sender, EventArgs e)
        {
            LoginSV.LoginServiceClient service = new LoginSV.LoginServiceClient();
            this.IsLogin = service.GetLogin(this.txtUser.Text, this.txtPassword.Text);
            if (IsLogin)
                this.Close();
        }

        private void btnExit_Click(object sender, EventArgs e)
        {
            this.ParentForm.Close();
        }

        private void LoginForm_Load(object sender, EventArgs e)
        {

        }
    }
}
